/**
 * 
 */
package hawk.example.juni5;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import hawk.example.Random;

/**
 * @author Hawk
 *
 */
public class RandomNumberDemo {

	// Use static randomNumber0 field anywhere in the test class,
	// including @BeforeAll or @AfterEach lifecycle methods.
	@Random
	private static Integer randomNumber0;

	// Use randomNumber1 field in test methods and @BeforeEach
	// or @AfterEach lifecycle methods.
	@Random
	private int randomNumber1;

	RandomNumberDemo(@Random int randomNumber2) {
		// Use randomNumber2 in constructor.
	}

	@BeforeEach
	void beforeEach(@Random int randomNumber3) {
		// Use randomNumber3 in @BeforeEach method.
	}

	@Test
	void test(@Random int randomNumber4) {
		System.out.println(randomNumber0);
		System.out.println(randomNumber1);
		System.out.println(randomNumber4);
	}
}
